import request from '@/utils/request'

// 查询充值信息汇总列表
export function listTopUp(query) {
  return request({
    url: '/system/topUp/list',
    method: 'get',
    params: query
  })
}

// 查询充值信息汇总详细
export function getTopUp(id) {
  return request({
    url: '/system/topUp/' + id,
    method: 'get'
  })
}

// 新增充值信息汇总
export function addTopUp(data) {
  return request({
    url: '/system/topUp',
    method: 'post',
    data: data
  })
}

// 修改充值信息汇总
export function updateTopUp(data) {
  return request({
    url: '/system/topUp',
    method: 'put',
    data: data
  })
}

// 删除充值信息汇总
export function delTopUp(id) {
  return request({
    url: '/system/topUp/' + id,
    method: 'delete'
  })
}
